#ifndef __PIN_MAP_H__
#define __PIN_MAP_H__

//*****************************************************************************
// 0x00000003 = MUX register value
// 0x0000000C = GMUX register value
// 0x0000FF00 = Shift amount within mux registers
// 0xFFFF0000 = Offset of MUX register
//*****************************************************************************
typedef enum
{
    GPIO_0_GPIO0          = 0x000C0000U,
    GPIO_0_EPWM1_A        = 0x000C0001U,
    GPIO_0_QSPIA          = 0x000C0002U,
    GPIO_0_I2CA_SDA       = 0x000C0006U,
    GPIO_1_GPIO1          = 0x000C0200U,
    GPIO_1_EPWM1_B        = 0x000C0201U,
    GPIO_1_QSPIA          = 0x000C0202U,
    GPIO_1_I2CA_SCL       = 0x000C0206U,
    GPIO_2_GPIO2          = 0x000C0400U,
    GPIO_2_EPWM2_A        = 0x000C0401U,
    GPIO_2_OUTPUTXBAR1    = 0x000C0405U,
    GPIO_2_PMBUSA_SDA     = 0x000C0406U,
    GPIO_2_SCIA_TX        = 0x000C0409U,
    GPIO_2_FSIRXA         = 0x000C040AU,
    GPIO_3_GPIO3          = 0x000C0600U,
    GPIO_3_EPWM2_B        = 0x000C0601U,
    GPIO_3_OUTPUTXBAR2    = 0x000C0602U,
    GPIO_3_OUTPUTXBAR2_2  = 0x000C0605U,
    GPIO_3_PMBUSA_SCL     = 0x000C0606U,
    GPIO_3_SPIA_CLK       = 0x000C0607U,
    GPIO_3_SCIA_RX        = 0x000C0609U,
    GPIO_3_FSIRXA         = 0x000C060AU,
    GPIO_4_GPIO4          = 0x000C0800U,
    GPIO_4_EPWM3_A        = 0x000C0801U,
    GPIO_4_QSPIA          = 0x000C0802U,
    GPIO_4_OUTPUTXBAR3    = 0x000C0805U,
    GPIO_4_CANA_TX        = 0x000C0806U,
    GPIO_4_FSIRXA_CLK     = 0x000C080AU,
    GPIO_5_GPIO5          = 0x000C0A00U,
    GPIO_5_EPWM3_B        = 0x000C0A01U,
    GPIO_5_OUTPUTXBAR3    = 0x000C0A03U,
    GPIO_5_CANA_RX        = 0x000C0A06U,
    GPIO_5_SPIA_STE       = 0x000C0A07U,
    GPIO_5_FSITXA         = 0x000C0A09U,
    GPIO_6_GPIO6          = 0x000C0C00U,
    GPIO_6_EPWM4_A        = 0x000C0C01U,
    GPIO_6_OUTPUTXBAR4    = 0x000C0C02U,
    GPIO_6_SYNCOUT        = 0x000C0C03U,
    GPIO_6_EQEP1_A        = 0x000C0C05U,
    GPIO_6_CANB_TX        = 0x000C0C06U,
    GPIO_6_SPIB_SOMI      = 0x000C0C07U,
    GPIO_6_FSITXA         = 0x000C0C09U,
    GPIO_7_GPIO7          = 0x000C0E00U,
    GPIO_7_EPWM4_B        = 0x000C0E01U,
    GPIO_7_OUTPUTXBAR5    = 0x000C0E03U,
    GPIO_7_EQEP1_B        = 0x000C0E05U,
    GPIO_7_CANB_RX        = 0x000C0E06U,
    GPIO_7_SPIB_SIMO      = 0x000C0E07U,
    GPIO_7_FSITXA_CLK     = 0x000C0E09U,
    GPIO_8_GPIO8          = 0x000C1000U,
    GPIO_8_EPWM5_A        = 0x000C1001U,
    GPIO_8_CANB_TX        = 0x000C1002U,
    GPIO_8_ADCSOCAO       = 0x000C1003U,
    GPIO_8_EQEP1_STROBE   = 0x000C1005U,
    GPIO_8_SCIA_TX        = 0x000C1006U,
    GPIO_8_SPIA_SIMO      = 0x000C1007U,
    GPIO_8_I2CA_SCL       = 0x000C1009U,
    GPIO_8_FSITXA         = 0x000C100AU,
    GPIO_8_EM1DQM0        = 0x000C100EU,
    GPIO_9_GPIO9          = 0x000C1200U,
    GPIO_9_EPWM5_B        = 0x000C1201U,
    GPIO_9_SCIB_TX        = 0x000C1202U,
    GPIO_9_OUTPUTXBAR6    = 0x000C1203U,
    GPIO_9_EQEP1_INDEX    = 0x000C1205U,
    GPIO_9_SCIA_RX        = 0x000C1206U,
    GPIO_9_SPIA_CLK       = 0x000C1207U,
    GPIO_9_FSITXA         = 0x000C120AU,
    GPIO_9_EM1DQM3        = 0x000C120EU,
    GPIO_10_GPIO10        = 0x000C1400U,
    GPIO_10_EPWM6_A       = 0x000C1401U,
    GPIO_10_CANB_RX       = 0x000C1402U,
    GPIO_10_ADCSOCBO      = 0x000C1403U,
    GPIO_10_EQEP1_A       = 0x000C1405U,
    GPIO_10_SCIB_TX       = 0x000C1406U,
    GPIO_10_SPIA_SOMI     = 0x000C1407U,
    GPIO_10_I2CA_SDA      = 0x000C1409U,
    GPIO_10_FSITXA_CLK    = 0x000C140AU,
    GPIO_10_SOE           = 0x000C140EU,
    GPIO_11_GPIO11        = 0x000C1600U,
    GPIO_11_EPWM6_B       = 0x000C1601U,
    GPIO_11_SCIB_RX       = 0x000C1602U,
    GPIO_11_OUTPUTXBAR7   = 0x000C1603U,
    GPIO_11_EQEP1_B       = 0x000C1605U,
    GPIO_11_SCIB_RX_2     = 0x000C1606U,
    GPIO_11_SPIA_STE      = 0x000C1607U,
    GPIO_11_FSIRXA        = 0x000C1609U,
    GPIO_12_GPIO12        = 0x000C1800U,
    GPIO_12_EPWM7_A       = 0x000C1801U,
    GPIO_12_CANB_TX       = 0x000C1802U,
    GPIO_12_QSPIB         = 0x000C1803U,
    GPIO_12_EQEP1_STROBE  = 0x000C1805U,
    GPIO_12_SCIB_TX       = 0x000C1806U,
    GPIO_12_PMBUSA_CTL    = 0x000C1807U,
    GPIO_12_FSIRXA        = 0x000C1809U,
    GPIO_13_GPIO13        = 0x000C1A00U,
    GPIO_13_EPWM7_B       = 0x000C1A01U,
    GPIO_13_CANB_RX       = 0x000C1A02U,
    GPIO_13_QSPIB         = 0x000C1A03U,
    GPIO_13_EQEP1_INDEX   = 0x000C1A05U,
    GPIO_13_SCIB_RX       = 0x000C1A06U,
    GPIO_13_PMBUSA_ALERT  = 0x000C1A07U,
    GPIO_13_FSIRXA_CLK    = 0x000C1A09U,
    GPIO_14_GPIO14        = 0x000C1C00U,
    GPIO_14_EPWM8_A       = 0x000C1C01U,
    GPIO_14_SCIB_TX       = 0x000C1C02U,
    GPIO_14_OUTPUTXBAR3   = 0x000C1C06U,
    GPIO_14_PMBUSA_SDA    = 0x000C1C07U,
    GPIO_14_SPIB_CLK      = 0x000C1C09U,
    GPIO_14_EQEP2_A       = 0x000C1C0AU,
    GPIO_15_GPIO15        = 0x000C1E00U,
    GPIO_15_EPWM8_B       = 0x000C1E01U,
    GPIO_15_SCIB_RX       = 0x000C1E02U,
    GPIO_15_QSPIB         = 0x000C1E03U,
    GPIO_15_OUTPUTXBAR4   = 0x000C1E06U,
    GPIO_15_PMBUSA_SCL    = 0x000C1E07U,
    GPIO_15_SPIB_STE      = 0x000C1E09U,
    GPIO_15_EQEP2_B       = 0x000C1E0AU,
    GPIO_15_EM1DQM0       = 0x000C1E0EU,
    GPIO_16_GPIO16        = 0x00100000U,
    GPIO_16_SPIA_SIMO     = 0x00100001U,
    GPIO_16_CANB_TX       = 0x00100002U,
    GPIO_16_OUTPUTXBAR7   = 0x00100003U,
    GPIO_16_EPWM5_A       = 0x00100005U,
    GPIO_16_SCIA_TX       = 0x00100006U,
    GPIO_16_SD1_D1        = 0x00100007U,
    GPIO_16_EQEP1_STROBE  = 0x00100009U,
    GPIO_16_PMBUSA_SCL    = 0x0010000AU,
    GPIO_16_XCLKOUT       = 0x0010000BU,
    GPIO_17_GPIO17        = 0x00100200U,
    GPIO_17_SPIA_SOMI     = 0x00100201U,
    GPIO_17_CANB_RX       = 0x00100202U,
    GPIO_17_OUTPUTXBAR8   = 0x00100203U,
    GPIO_17_EPWM5_B       = 0x00100205U,
    GPIO_17_SCIA_RX       = 0x00100206U,
    GPIO_17_SD1_C1        = 0x00100207U,
    GPIO_17_EQEP1_INDEX   = 0x00100209U,
    GPIO_17_PMBUSA_SDA    = 0x0010020AU,
    GPIO_17_XREADY        = 0x0010020EU,
    GPIO_17_SOE           = 0x0010020FU,
    GPIO_20_GPIO20        = 0x00100800U,
    GPIO_21_GPIO21        = 0x00100A00U,
    GPIO_24_GPIO24        = 0x00101000U,
    GPIO_24_OUTPUTXBAR1   = 0x00101001U,
    GPIO_24_EQEP2_A       = 0x00101002U,
    GPIO_24_EPWM8_A       = 0x00101005U,
    GPIO_24_SPIB_SIMO     = 0x00101006U,
    GPIO_24_SD1_D1        = 0x00101007U,
    GPIO_24_PMBUSA_SCL    = 0x0010100AU,
    GPIO_24_SCIA_TX       = 0x0010100BU,
    GPIO_24_ERRORSTS      = 0x0010100DU,
    GPIO_25_GPIO25        = 0x00101200U,
    GPIO_25_OUTPUTXBAR2   = 0x00101201U,
    GPIO_25_EQEP2_B       = 0x00101202U,
    GPIO_25_SPIB_SOMI     = 0x00101206U,
    GPIO_25_SD1_C1        = 0x00101207U,
    GPIO_25_FSITXA        = 0x00101209U,
    GPIO_25_PMBUSA_SDA    = 0x0010120AU,
    GPIO_25_SCIA_RX       = 0x0010120BU,
    GPIO_26_GPIO26        = 0x00101400U,
    GPIO_26_OUTPUTXBAR3   = 0x00101401U,
    GPIO_26_EQEP2_INDEX   = 0x00101402U,
    GPIO_26_CAN0_STBY     = 0x00101403U,
    GPIO_26_OUTPUTXBAR3_2 = 0x00101405U,
    GPIO_26_SPIB_CLK      = 0x00101406U,
    GPIO_26_SD1_D2        = 0x00101407U,
    GPIO_26_FSITXA        = 0x00101409U,
    GPIO_26_PMBUSA_CTL    = 0x0010140AU,
    GPIO_26_I2CA_SDA      = 0x0010140BU,
    GPIO_26_SOE           = 0x0010140FU,
    GPIO_27_GPIO27        = 0x00101600U,
    GPIO_27_OUTPUTXBAR4   = 0x00101601U,
    GPIO_27_EQEP2_STROBE  = 0x00101602U,
    GPIO_27_CAN1_STBY     = 0x00101603U,
    GPIO_27_SPIB_STE      = 0x00101606U,
    GPIO_27_SD1_C2        = 0x00101607U,
    GPIO_27_FSITXA_CLK    = 0x00101609U,
    GPIO_27_PMBUSA_ALERT  = 0x0010160AU,
    GPIO_27_I2CA_SCL      = 0x0010160BU,
    GPIO_28_GPIO28        = 0x00101800U,
    GPIO_28_SCIA_RX       = 0x00101801U,
    GPIO_28_CAN1_STBY     = 0x00101802U,
    GPIO_28_EPWM7_A       = 0x00101803U,
    GPIO_28_OUTPUTXBAR5   = 0x00101805U,
    GPIO_28_EQEP1_A       = 0x00101806U,
    GPIO_28_SD1_D3        = 0x00101807U,
    GPIO_28_EQEP2_STROBE  = 0x00101809U,
    GPIO_28_LINA_TX       = 0x0010180AU,
    GPIO_28_SPIB_CLK      = 0x0010180BU,
    GPIO_28_ERRORSTS      = 0x0010180DU,
    GPIO_29_GPIO29        = 0x00101A00U,
    GPIO_29_SCIA_TX       = 0x00101A01U,
    GPIO_29_CAN1_STBY     = 0x00101A02U,
    GPIO_29_EPWM7_B       = 0x00101A03U,
    GPIO_29_OUTPUTXBAR6   = 0x00101A05U,
    GPIO_29_EQEP1_B       = 0x00101A06U,
    GPIO_29_SD1_C3        = 0x00101A07U,
    GPIO_29_EQEP2_INDEX   = 0x00101A09U,
    GPIO_29_LINA_RX       = 0x00101A0AU,
    GPIO_29_SPIB_STE      = 0x00101A0BU,
    GPIO_29_ERRORSTS      = 0x00101A0DU,
    GPIO_29_SOE           = 0x00101A0FU,
    GPIO_30_GPIO30        = 0x00101C00U,
    GPIO_30_CANA_RX       = 0x00101C01U,
    GPIO_30_EPWM9_A       = 0x00101C02U,
    GPIO_30_SPIB_SIMO     = 0x00101C03U,
    GPIO_30_OUTPUTXBAR7   = 0x00101C05U,
    GPIO_30_EQEP1_STROBE  = 0x00101C06U,
    GPIO_30_SD1_D4        = 0x00101C07U,
    GPIO_31_GPIO31        = 0x00101E00U,
    GPIO_31_CANA_TX       = 0x00101E01U,
    GPIO_31_EPWM9_B       = 0x00101E02U,
    GPIO_31_SPIB_SOMI     = 0x00101E03U,
    GPIO_31_OUTPUTXBAR8   = 0x00101E05U,
    GPIO_31_EQEP1_INDEX   = 0x00101E06U,
    GPIO_31_SD1_C4        = 0x00101E07U,
    GPIO_31_FSIRXA        = 0x00101E09U,
    GPIO_32_GPIO32        = 0x005C0000U,
    GPIO_32_I2CA_SDA      = 0x005C0001U,
    GPIO_32_SPIB_CLK      = 0x005C0003U,
    GPIO_32_EPWM8_B       = 0x005C0005U,
    GPIO_32_LINA_TX       = 0x005C0006U,
    GPIO_32_SD1_D3        = 0x005C0007U,
    GPIO_32_FSIRXA        = 0x005C0009U,
    GPIO_32_CANA_TX       = 0x005C000AU,
    GPIO_33_GPIO33        = 0x005C0200U,
    GPIO_33_I2CA_SCL      = 0x005C0201U,
    GPIO_33_SPIB_STE      = 0x005C0203U,
    GPIO_33_OUTPUTXBAR4   = 0x005C0205U,
    GPIO_33_LINA_RX       = 0x005C0206U,
    GPIO_33_SD1_C3        = 0x005C0207U,
    GPIO_33_FSIRXA_CLK    = 0x005C0209U,
    GPIO_33_CANA_RX       = 0x005C020AU,
    GPIO_34_GPIO34        = 0x005C0400U,
    GPIO_34_OUTPUTXBAR1   = 0x005C0401U,
    GPIO_34_QSPIB         = 0x005C0402U,
    GPIO_34_CAN0_STBY     = 0x005C0403U,
    GPIO_34_PMBUSA_SDA    = 0x005C0406U,
    GPIO_34_SOE           = 0x005C040FU,
    GPIO_35_GPIO35        = 0x005C0600U,
    GPIO_35_SCIA_RX       = 0x005C0601U,
    GPIO_35_I2CA_SDA      = 0x005C0603U,
    GPIO_35_CANA_RX       = 0x005C0605U,
    GPIO_35_PMBUSA_SCL    = 0x005C0606U,
    GPIO_35_LINA_RX       = 0x005C0607U,
    GPIO_35_EQEP1_A       = 0x005C0609U,
    GPIO_35_PMBUSA_CTL    = 0x005C060AU,
    GPIO_35_TDI           = 0x005C060FU,
    GPIO_37_GPIO37        = 0x005C0A00U,
    GPIO_37_OUTPUTXBAR2   = 0x005C0A01U,
    GPIO_37_QSPIA         = 0x005C0A02U,
    GPIO_37_I2CA_SCL      = 0x005C0A03U,
    GPIO_37_SCIA_TX       = 0x005C0A05U,
    GPIO_37_CANA_TX       = 0x005C0A06U,
    GPIO_37_LINA_TX       = 0x005C0A07U,
    GPIO_37_EQEP1_B       = 0x005C0A09U,
    GPIO_37_PMBUSA_ALERT  = 0x005C0A0AU,
    GPIO_37_TDO           = 0x005C0A0FU,
    GPIO_39_GPIO39        = 0x005C0E00U,
    GPIO_39_EPWM10_A      = 0x005C0E02U,
    GPIO_39_CANB_RX       = 0x005C0E06U,
    GPIO_39_FSIRXA_CLK    = 0x005C0E07U,
    GPIO_39_EM1DQM1       = 0x005C0E0EU,
    GPIO_40_GPIO40        = 0x005C1000U,
    GPIO_40_CAN0_STBY     = 0x005C1001U,
    GPIO_40_EPWM10_B      = 0x005C1002U,
    GPIO_40_PMBUSA_SDA    = 0x005C1006U,
    GPIO_40_FSIRXA        = 0x005C1007U,
    GPIO_40_SCIB_TX       = 0x005C1009U,
    GPIO_40_EQEP1_A       = 0x005C100AU,
    GPIO_40_EM1DQM2       = 0x005C100EU,
    GPIO_41_GPIO41        = 0x005C1200U,
    GPIO_41_SPIA_CLK      = 0x005C1201U,
    GPIO_41_SCIB_TX       = 0x005C1202U,
    GPIO_41_CANA_RX       = 0x005C1203U,
    GPIO_41_EPWM6_A       = 0x005C1205U,
    GPIO_41_I2CA_SCL      = 0x005C1206U,
    GPIO_41_SD1_D2        = 0x005C1207U,
    GPIO_41_EQEP2_A       = 0x005C1209U,
    GPIO_41_PMBUS_CTL     = 0x005C120AU,
    GPIO_41_XCLKOUT       = 0x005C120BU,
    GPIO_41_SOE           = 0x005C120FU,
    GPIO_42_GPIO42        = 0x005C1400U,
    GPIO_42_EQEP1_STROBE  = 0x005C1401U,
    GPIO_42_SCIB_TX       = 0x005C1403U,
    GPIO_42_SPIB_CLK      = 0x005C1406U,
    GPIO_42_SD1_D4        = 0x005C1407U,
    GPIO_42_LINA_TX       = 0x005C1409U,
    GPIO_43_GPIO43        = 0x005C1600U,
    GPIO_44_GPIO44        = 0x005C1800U,
    GPIO_45_GPIO45        = 0x005C1A00U,
    GPIO_46_GPIO46        = 0x005C1C00U,
    GPIO_47_GPIO47        = 0x005C1E00U,
    GPIO_48_GPIO48        = 0x00600000U,
    GPIO_49_GPIO49        = 0x00600200U,
    GPIO_50_GPIO50        = 0x00600400U,
    GPIO_51_GPIO51        = 0x00600600U,
    GPIO_52_GPIO52        = 0x00600800U,
    GPIO_53_GPIO53        = 0x00600A00U,
    GPIO_54_GPIO54        = 0x00600C00U,
    GPIO_55_GPIO55        = 0x00600E00U,
    GPIO_56_GPIO56        = 0x00601000U,
    GPIO_56_SPIA_CLK      = 0x00601001U,
    GPIO_56_EPWM11_A      = 0x00601002U,
    GPIO_56_EQEP2_STROBE  = 0x00601005U,
    GPIO_56_SCIB_TX       = 0x00601006U,
    GPIO_56_SD1_D3        = 0x00601007U,
    GPIO_56_SPIB_SIMO     = 0x00601009U,
    GPIO_56_EQEP1_A       = 0x0060100BU,
    GPIO_56_EM1WE         = 0x0060100EU,
    GPIO_57_GPIO57        = 0x00601200U,
    GPIO_57_SPIA_STE      = 0x00601201U,
    GPIO_57_EPWM11_B      = 0x00601202U,
    GPIO_57_EQEP2_INDEX   = 0x00601205U,
    GPIO_57_SCIB_RX       = 0x00601206U,
    GPIO_57_SD1_C3        = 0x00601207U,
    GPIO_57_SPIB_SOMI     = 0x00601209U,
    GPIO_57_EQEP1_B       = 0x0060120BU,
    GPIO_57_SADS_SRE      = 0x0060120EU,
    GPIO_58_GPIO58        = 0x00601400U,
    GPIO_58_EPWM12_A      = 0x00601402U,
    GPIO_58_OUTPUTXBAR1   = 0x00601405U,
    GPIO_58_SPIB_CLK      = 0x00601406U,
    GPIO_58_SD1_D4        = 0x00601407U,
    GPIO_58_LINA_TX       = 0x00601409U,
    GPIO_58_CANB_TX       = 0x0060140AU,
    GPIO_58_EQEP1_STROBE  = 0x0060140BU,
    GPIO_59_GPIO59        = 0x00601600U,
    GPIO_59_EPWM12_B      = 0x00601602U,
    GPIO_59_OUTPUTXBAR2   = 0x00601605U,
    GPIO_59_SPIB_STE      = 0x00601606U,
    GPIO_59_SD1_C4        = 0x00601607U,
    GPIO_59_LINA_RX       = 0x00601609U,
    GPIO_59_CANB_RX       = 0x0060160AU,
    GPIO_59_EQEP1_INDEX   = 0x0060160BU,
} GPIO_PinMux;

#endif // PIN_MAP_H
